node:
  name: {{ es_node_name }}
  roles: {{ es_roles }}

http:
  port: {{ elasticsearch.http.port }}

transport:
  port: {{ elasticsearch.transport.port }}

path:
  data:
{% for path in elasticsearch.path_data %}
    - {{ path }}
{% endfor %}
  logs: {{ elasticsearch.path_logs }}

cluster:
  name: {{ elasticsearch.cluster_name }}
  initial_master_nodes: {{ es_master_nodes }}

{% if es_seed_nodes is truthy %}
discovery:
  seed_hosts: {{ es_seed_nodes }}
{% endif %}

bootstrap:
  memory_lock: true

network:
  host: {{ elasticsearch.network.host }}

xpack:
  security:
    enabled: true
    http:
      ssl:
        enabled: true
        key: certs/{{ es_node_name }}/{{ es_node_name }}.key
        certificate: certs/{{ es_node_name }}/{{ es_node_name }}.crt
        certificate_authorities: certs/ca/ca.crt
    transport:
      ssl:
        enabled: true
        key: certs/{{ es_node_name }}/{{ es_node_name }}.key
        certificate: certs/{{ es_node_name }}/{{ es_node_name }}.crt
        certificate_authorities: certs/ca/ca.crt
        verification_mode: certificate
  license:
    self_generated:
      type: {{ elasticsearch.license | default('basic') }}